package io.renren.modules.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Data;

/**
 * @author  lj
 * @date  2021/4/14 1:32
 * @email milolj@foxmail.com
 */

/**
 * 微信用户表
 */
@ApiModel(value = "io-renren-modules-shop-entity-WxUser")
@Data
@TableName(value = "wx_user")
public class WxUser implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 账号名
     */
    @TableField(value = "openid")
    @ApiModelProperty(value = "账号名")
    private String openid;

    /**
     * 用户位置
     */
    @TableField(value = "wx_place")
    @ApiModelProperty(value = "用户位置")
    private String wxPlace;

    /**
     * 状态 0为正常使用，1为加入黑名单
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value = "状态 0为正常使用，1为加入黑名单")
    private Integer status;

    /**
     * 微信昵称
     */
    @TableField(value = "nick_name")
    @ApiModelProperty(value = "微信昵称")
    private String nickName;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_OPENID = "openid";

    public static final String COL_WX_PLACE = "wx_place";

    public static final String COL_STATUS = "status";

    public static final String COL_NICK_NAME = "nick_name";
}